export function TimeChange(now) {
    let date = new Date(now)
    var year = date.getFullYear(); //获取当前年份
    var month = date.getMonth() + 1; //获取当前月份
    if(month<10){
        month = '0'+month
    }
    var day = date.getDate(); //获取当前日
    if(day<10){
        day+='0'
    }
    var h = date.getHours(); //获取小时
    if (h < 10) {
        h = "0" + h
    }
    var m = date.getMinutes(); //获取分钟
    if (m < 10) {
        m = "0" + m
    }
    var s = date.getSeconds(); //获取秒
    if (s < 10) {
        s = "0" + s
    }
    return year + "-" + month + "-" + day + " " + h + ":" + m + ":" + s;
}
